package md.mru.transfer.old.domain;


import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * membrii familiei
 */
@Entity
@Table(name="FML" , schema = "mru"
)
public class Fml implements Serializable {

    private static final long serialVersionUID = 5326078319883536324L;

    @Id
    @Column(name = "ID", unique = true, nullable = false, precision = 10, scale = 0)
    private long id;

    @JoinColumn(name = "RLT")
    @Column(name = "RLT")
    private long familyRelation;//gradul de rudenie

    @Column(name = "NME", length = 30)
    private String name;// NPP ruda

    @Temporal(TemporalType.DATE)
    @Column(name = "DTE", length = 7)
    private Date birthDate;// data nasterii

    @Column(name = "DSR", precision = 10, scale = 0)
    private Long folder;//folder

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getFamilyRelation() {
        return familyRelation;
    }

    public void setFamilyRelation(long familyRelation) {
        this.familyRelation = familyRelation;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public Long getFolder() {
        return folder;
    }

    public void setFolder(Long folder) {
        this.folder = folder;
    }
}


